﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MeterReadingPage.aspx.cs" Inherits="WaterApp.QueryReport.MeterReadingPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>抄表记录查询</title>
    <link href="../Styles/if.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManage1" runat="server"></asp:ScriptManager>
    <script type="text/javascript" language="javascript">

    </script>
    <div>
    <div style="width:100%; background-color: #E0E0E0; height:30px; 
                font-family:宋体; font-size:12px; font-weight:bold; line-height:30px;">
      查询和报表=>抄表记录查询
    </div>
      <table>
         <tr>
           <td style="text-align:right;">用户账户</td>
           <td style="text-align:left;"><asp:TextBox ID="tbaccount" runat="server" Width="180px"></asp:TextBox> </td>
           <td style="text-align:right;">抄表时间</td>
           <td style="text-align:left;"><asp:TextBox ID="tbcbdt" runat="server" Width="180px"></asp:TextBox>
               <asp:ImageButton runat="server" ID="imgcsrq" ImageUrl="~/Images/Calendar_scheduleHS.png" 
                                             AlternateText="Click to show calendar" /></td>
         </tr>
         <tr>
           <td style="text-align:right;">地址</td>
           <td colspan="3" style="text-align:left;"><asp:TextBox ID="tbaddress" runat="server" Width="423px"></asp:TextBox> </td>          
         </tr>
         <tr>
           <td style="text-align:right;">户名</td>
           <td style="text-align:left;"><asp:TextBox ID="tbhuname" runat="server" Width="180px"></asp:TextBox> </td>  
           <td style="text-align:right;">电话</td>
           <td style="text-align:left;"><asp:TextBox ID="tbtelphone" runat="server" Width="180px"></asp:TextBox>
           <asp:LinkButton ID="meterreadfound" runat="server" 
                             OnClick="meterreadfound_Click"
                             Width="80px" CssClass="linkbutton" Text="查询"></asp:LinkButton>   
            </td>                     
         </tr>         
      </table>
      <asp:CalendarExtender ID="calendarButtonExtender" runat="server" TargetControlID="tbcbdt" 
                                              PopupButtonID="imgcsrq" Format="yyyy/MM/dd"  />  
    </div>
    <div>
       <div style="width: 95%; padding: 2px 0px 0px 0px;">
                    <asp:GridView ID="GvMeterRead" runat="server" Width="100%" AutoGenerateColumns="false"
                              AllowPaging="true" PageSize="15"
                              OnSelectedIndexChanged="GvMeterRead_SelectedIndexChanged">
                    <HeaderStyle CssClass="poputopbj" Font-Names="Arial,宋体" Font-Size="12px" /> 
                    <SelectedRowStyle BackColor = "#CCCCCC" ForeColor="black" />
                    <AlternatingRowStyle BackColor="#F7F7F7"></AlternatingRowStyle>
                    <PagerStyle ForeColor="Black" />  
                    <Columns>
                      <asp:BoundField DataField="MRNO" HeaderText="序号" ItemStyle-Width="80px"></asp:BoundField> 
                      <asp:BoundField DataField="MeterDt" HeaderText="抄表时间" 
                                      ItemStyle-HorizontalAlign="right" ItemStyle-Width="120px"></asp:BoundField> 
                      <asp:BoundField DataField="EpcNo" HeaderText="标签编码"></asp:BoundField>                  
                      <asp:BoundField DataField="CopyCode" HeaderText="抄码" 
                                      ItemStyle-HorizontalAlign="right" ItemStyle-Width="50px" ></asp:BoundField> 
                      <asp:BoundField DataField="WaterCon" HeaderText="用水量(立方米)" 
                                      ItemStyle-HorizontalAlign="right" ItemStyle-Width="100px" ></asp:BoundField> 
                      <asp:BoundField DataField="Memo" HeaderText="备注" 
                                      ItemStyle-HorizontalAlign="Left" ></asp:BoundField>                                                                                                                                                              
                      <asp:TemplateField ItemStyle-Width="30px">
                         <ItemTemplate>
                        <asp:LinkButton ID="linkSel" runat="server" ForeColor="Black" 
                                              CommandName="Select" Text="选择">
                              </asp:LinkButton>
                         </ItemTemplate>
                      </asp:TemplateField>          
                    </Columns>
                   </asp:GridView>
                 </div>
                 <div>                   
                   <asp:Label ID="lbmessage" runat="server" Width="300px" ForeColor="Red"></asp:Label>
                 </div>
            <div style="width:95%; text-align:right;">
                <asp:LinkButton ID="lnkfh" runat="server" Width="80px" CssClass="linkbutton" Text="复核抄表"></asp:LinkButton>
            </div>
            <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="lnkfh"
                   PopupControlID="popupan" CancelControlID="lnkClose" X="100" Y="85" /> 
            <asp:Panel ID="popupan" runat="server" Style="display: none; width: 70%; height: 350px;
                   text-align: center; background-color: White; border: 1px solid Gray;"> 
                    <div style="text-align: right; width:99%; height:30px; margin:3px;background-image:url(../Images/picture/shengse_01.gif);background-position:top;background-repeat:repeat-x;">
                       <asp:LinkButton ID="lnkClose" runat="server" Text="X" ToolTip="Close" Height="20px" Width="15px" 
                                       Style="background-color: #666666; color: #FFFFFF; text-align: center; 
                                              font-weight: bold; text-decoration: none;
                                              border: outset thin #FFFFFF; margin:3px;" />
                    </div>                             
                <div style="text-align:center;">
                <table>
                    <tr>
                    <td></td>
                    <td style="text-align:left;">
                        <div ID="tbbase" runat="server" style="Width:400px; font:宋体; font-size:13px;"></div>
                        <asp:HiddenField ID="hfmrno" runat="server" />
                    </td>
                    </tr>      
                    <tr>
                      <td colspan="2">
                       <br />
                      </td>
                    </tr>             
                    <tr>
                        <td style="text-align:right;">是否通过</td>
                        <td style="text-align:left;">
                          <asp:DropDownList ID="dplfh" runat="server" Width="158px">                     
                             <asp:ListItem Text="复核通过" Value="1"></asp:ListItem>
                             <asp:ListItem Text="复核不通过" Value="0"></asp:ListItem>
                          </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right;">复核意见:</td>
                        <td style="text-align:left; font-family:Arial 宋体; font-size:12px;">
                          <asp:TextBox ID="tbfhadv" runat="server" Width="300px" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="font-family: 宋体; font-size: 13px; text-align: right;">
                            <asp:LinkButton ID="lnkSave" runat="server" 
                                            OnClick="lnkSave_Click" Width="80px" CssClass="linkbutton"  
                                            Text="保存"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
        </div>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
